<%-- 
    Document   : fromLogin
    Created on : Aug 8, 2012, 10:30:32 PM
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="/WEB-INF/taglib139.tld" prefix="pg" %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>Form Login</title>
        <link type="text/css" href="CSS/humanity/jquery-ui-1.8.17.custom.css" rel="stylesheet" />
        <link rel="stylesheet" href="CSS/style_1.css" type="text/css" charset="utf-8" />
        <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="js/jquery-ui-1.8.17.custom.min.js"></script>
        <script type="text/javascript" src="js/jquery-1.6.js"></script>
        <script type="text/javascript" src="js/jquery-ui-1.8.13.custom.min.js"></script>
        <script type="text/javascript" src="js/additional-methods.js"></script>
        <script type="text/javascript" src="js/jquery.validate.js"></script>
        <script>
            $(function() {
                $("#date").datepicker({ dateFormat: 'dd-mm-yy' });
                $("#testForm").validate({
                    rules:{
                        txtUserName: {
                            required:true
                        },
                        txtPassword: {
                            required:true
                        }
                    }
                })
            });

        </script>
        <script type="text/javascript">
            function validate()
            {
                 
                if((document.abc.txtPassword.value!="")&&(document.abc.txtUserName.value!=""))
                {
                    alert("Hôm nay có hai bạn sinh nhật.");
                    return true;
                }
                return true;
            
            }
        </script>

    </head>
    <body>
        <div id="wrapper">
            <div id="header"> </div>
            <div id="left">
                <div id="logo">
                    <h1>Management Events</h1>
                    <p>FPT_APTECH</p>
                </div>
                <div id="nav">
                    <ul>
                        <li class="important"><a href="index.jsp">Home</a></li>
                        <li><a href="RegisterEvent.jsp">RegisterEvent</a></li>
                        <li><a href="Winners">Winners</a></li>
                        <li><a href="Help.jsp">Help</a></li>
                        <li><a href="fromLogin.jsp">Login</a></li>

                    </ul>
                </div>
                <div id="news">

                </div>
                <div id="support">
                    <p><b>Phone:01652-384-764</b></p>
                    <p><b>Email:Aptech@fpt.aptech.ac.vn</b></p>
                </div>
            </div>
            <div id="right">
                <h2>Form Login</h2>

                <div align="left">
                    <form action="Controllers" method="post" name="abc" <c:if test="${empty requestScope.erros}">onsubmit="return validate()"</c:if>  id="testForm">
                        <table style="width:100%">
                            <tr>
                                <td colspan="2">
                                    <c:if test="${not empty requestScope.erros}"> 
                                        <font style="color: red;font-size: 15px">${requestScope.erros}</font>
                                    </c:if>

                                </td>
                            </tr>
                            <tr>
                                <th align="left" style="width:25%">User Name</th>
                                <th align="left"><input type="text" name="txtUserName"  style="width: 180px;height: 25px"/></th>
                            </tr>
                            <tr>
                                <th align="left" style="width:25%">Password</th>
                                <th align="left"><input type="password" name="txtPassword"  style="width: 180px;height: 25px"/></th>
                            </tr>
                            <tr>
                                <th align="left"></th>
                                <th align="left">
                                    <input type="submit" name="btAction" value="Login" style="width: 60px;height: 25px"></input>
                                    <input type="reset" name="btAction" value="Reset" style="width: 60px;height: 25px"></input>
                                </th>
                            </tr>

                        </table>
                    </form>
                </div>

            </div>
            <div class="clear"> </div>
            <div id="spacer"> </div>

            <div id="footer">
                <div id="copyright">
                    Copyright &copy; 2007 Four Idiots Company All right reserved.
                </div>
                <div id="footerline"></div>
            </div>

        </div>
    </body>
</html>
